package com.jcl.cloud.services.brain.client;

import org.springframework.web.client.RestTemplate;

public class CrawlerBrainClient {



    private RestTemplate restTemplate;


    public CrawlerBrainClient(RestTemplate restTemplate){
        this.restTemplate = restTemplate;
    }



    public void reportCookieFail(String crawlerId){

        String url = "http://crawler-brain-server/crawler-brain/api/v1/task/report?crawlerId={crawlerId}";
        this.restTemplate.getForObject(url,String.class,crawlerId);
    }
}
